package DSEntity;

import java.io.Serializable;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: MemberVoting
 *
 */
@Entity
@NamedQueries({
    @NamedQuery(name="Country.findByMemberVoter", query="SELECT m FROM MemberVoting m"),
    @NamedQuery(name="Country.findByMemberCandidate",query="SELECT m FROM MemberVoting m WHERE m.idMemberVoting = :idMemberVoting"),
}) 
public class MemberVoting implements Serializable {
	private static final long serialVersionUID = 1L;

	   
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int idMemberVoting;
	
	//uni-directional many-to-one association to memberofparty
		@ManyToOne
	private Memberofparty memberofparty;
		//uni-directional many-to-one association to memberofparty
		@ManyToOne
		private Memberofparty memberofpartyVoter;
		
	
	public MemberVoting() {
		super();
	}   
	public int getIdMemberVoting() {
		return this.idMemberVoting;
	}

	public void setIdMemberVoting(int idMemberVoting) {
		this.idMemberVoting = idMemberVoting;
	}   
	public Memberofparty getMemberofparty() {
		return this.memberofparty;
	}

	public void setMemberofparty(Memberofparty memberofparty) {
		this.memberofparty = memberofparty;
	}
	
	public Memberofparty getMemberofpartyVoter() {
		return this.memberofparty;
	}

	public void setMemberofpartyVoter(Memberofparty memberofparty) {
		this.memberofparty = memberofparty;
	}

   
}
